const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {      
    host: 'localhost',
    port: 8080,
    https: false,
    hot: false,
    proxy: {
      // 当路径中含有 /api 时代理转发
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
        // target: 'http://sph-api.atguigu.cn',
        // pathRewrite: {
        //   '^/api': '' 
        // }
      }
    }
  },
  lintOnSave: false
})
